import React, {Component} from "react";
import {
	ScrollView,
	Text,
} from "react-native";
import Icon from 'react-native-vector-icons/FontAwesome';
import ImageSwipe from "../components/public/ImageSwipe";//轮播广告
import ServerIcon from "../components/serverCenter/ServerIcon";//图标
import Physician from "../components/serverCenter/Physician";//主治医师
import AllDocList from "../components/serverCenter/allDocList";//医生列表
import CustomTitle from '../components/public/CustomTitle';

export default class ServerCenter extends Component {
	static navigationOptions = {
		tabBarLabel: "服务中心",
		tabBarIcon: ({tintColor}) => (
			<Icon name="navicon" size={22} style={{color: gColor.color2}} />
		),
	}

	constructor(props) {
		super(props);
	}

	render() {
		return (
			<ScrollView>
				<ImageSwipe />
				<ServerIcon />
				<CustomTitle 
					title="主治医师"
					style={{borderBottomWidth: 1,paddingVertical:10}}
				/>
				<Physician />
				<CustomTitle 
					title="医生列表"
					style={{borderBottomWidth: 1,paddingVertical:10}}
				/>
				<AllDocList />
			</ScrollView>
			
		);
	}
}